﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EzDesk.Apps.Model.Attendance;
using EzDesk.Apps.ServiceImpl.Attendance.Repositories.Interface;
using EzDesk.Apps.ServiceImpl.Repositories.Mock;

namespace EzDesk.Apps.UnitTest
{
    public class Mock_LeaveTypeRepository :
        Mock_Repository<LeaveType>, ILeaveTypeRepository
    {
        public Mock_LeaveTypeRepository()
        {
            initialize();
        }

        protected override sealed void initialize()
        {
            base.initialize();
            var data = new List<LeaveType>()
                           {
                               new LeaveType(){Id=Guid.NewGuid(), LeaveTypeName = "事假", IsForWork = false},
                               new LeaveType(){Id=Guid.NewGuid(), LeaveTypeName = "检假", IsForWork = true},
                               new LeaveType(){Id=Guid.NewGuid(), LeaveTypeName = "出差", IsForWork = true},
                               new LeaveType(){Id=Guid.NewGuid(), LeaveTypeName = "病假", IsForWork = false},
                               new LeaveType(){Id=Guid.NewGuid(), LeaveTypeName = "产假", IsForWork = false},
                               new LeaveType(){Id=Guid.NewGuid(), LeaveTypeName = "外出", IsForWork = true},
                               new LeaveType(){Id=Guid.NewGuid(), LeaveTypeName = "其它", IsForWork = false},
                               new LeaveType(){Id=Guid.NewGuid(), LeaveTypeName = "调休", IsForWork = false},
                               new LeaveType(){Id=Guid.NewGuid(), LeaveTypeName = "年假", IsForWork = false},
                           };
            innerStorage.SetInnerStorage(data);
        }
    }
}

